package com.aceitunaproject.clientinterface.eventadapters;
import java.util.List;
import com.aceitunaproject.clientinterface.eventregistering.ChatMessageReceivedHandler;
import com.aceitunaproject.shared.message.Message;
import com.aceitunaproject.shared.message.concrete.ChatMessageReceivedEvent;

/**
 * Adapter for the ChatMessageReceived event handler
 */
public class ChatMessageReceivedAdapter extends BasicAceitunaEventAdapter {
	public ChatMessageReceivedAdapter(List<Object> handlers) {
		super(handlers);
	}

	public ChatMessageReceivedAdapter() {
	}

	@Override
	void triggerInHandler(Object handler, Message message) {
		((ChatMessageReceivedHandler) handler)
				.ChatMessageReceived((ChatMessageReceivedEvent) message);
	}

}